package com.ynet.middleground.contract.bean;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 项目名：ifp-contract <br>
 * 包名：com.ynet.middleground.contract.bean <br>
 * 类名：SigningWithoutAuthAndUrlParamBean <br>
 * 描述： 无认证签章，签署文件（不含文件地址）、印章、签名域等信息
 * 
 * @author liulx
 * @create 2022-05-09 16:21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "无认证签章，签署文件（不含文件地址）、印章、签名域等信息", description = "无认证签章，签署文件（不含文件地址）、印章、签名域等信息")
public class SigningWithoutAuthAndUrlParamBean implements Serializable {

    private static final long serialVersionUID = -2554805229640141490L;

    @ApiModelProperty(value = "文档编辑密码，当目标 PDF 设置权限保护时必填", notes = "文档编辑密码，当目标 PDF 设置权限保护时必填", dataType = "String")
    private String ownerPassword;

    @ApiModelProperty(value = "签章位置信息", notes = "签章位置信息", dataType = "com.ynet.middleground.contract.bean.SignPos",
        required = true)
    @NotNull(message = "签章位置信息不能为空")
    private SignPos signPos;

    @ApiModelProperty(value = "签章类型\nSingle: 单页签章\nMulti: 多页签章\nEdges: 签骑缝章\nKey: 关键字签章",
        notes = "签章类型\nSingle: 单页签章\nMulti: 多页签章\nEdges: 签骑缝章\nKey: 关键字签章", dataType = "String", required = true)
    @NotBlank(message = "签章类型不能为空")
    private String signType;

}
